package com.lzh.article.feign;

import com.lzh.article.dto.ArticleInfoDto;
import com.lzh.article.entity.ApArticle;
import com.lzh.common.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author lizuhu
 * @description
 * @date 2021/7/1 19:32
 */
@FeignClient(name="leadnews-article",path = "/apArticle",contextId = "apArticle")
public interface ApArticleFeign {
    //保存文章或者更新文章信息
    @PostMapping("/articleInfo/save")
    Result<ApArticle> save(@RequestBody ArticleInfoDto articleInfoDto);
}
